package com.ykt.converter;

import com.ykt.model.User;
import com.ykt.vo.MerchantVo;

/**
 * @author long.hua
 * @version 1.0.0
 * @since 2016-02-15 22:06
 */
public class MerchantConverter {


    public static MerchantVo convert(User user){
        if(user == null){
            return null;
        }

        MerchantVo vo = new MerchantVo();
        vo.setId(user.getId());
        vo.setName(user.getName());
        vo.setHead(user.getHead());
        vo.setEmail(user.getEmail());
        vo.setPhone(user.getPhone());

        return vo;
    }

}
